<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Test</title>
    <base href="http://${pageContext.request.serverName}:${pageContext.request.serverPort}${pageContext.request.contextPath}/" />
    <script type="text/javascript" src="/jquery/jquery-2.1.1.min.js"></script>
    <script type="text/javascript" src="/layer/layer.js"></script>
    <script type="text/javascript">
        $(function () {
            $("#button3").click(function () {
                let array = [1, 2, 3]
                let requestBody = JSON.stringify(array)
                $.ajax({
                    url:"send/array3.json",
                    type:"post",
                    data: requestBody,
                    contentType: "application/json;charset:UTF-8",
                    dataType:"json",
                    success:function (response) {
                        layer.msg("我是layer");
                    },
                    error:function (response) {
                        alert(response);
                    }
                })
            })
        })
    </script>
</head>
<body>
    <a href="test/ssm.html">SSM整合环境测试</a> <br/>
    <button id="button3">Ajax发送数组1</button>
</body>
</html>
